package com.syf.controller.RJController;

import com.syf.domain.store.BsBigClass;
import com.syf.model.R;
import com.syf.service.BsBigClassService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author syf
 * @create 2022-02-08 9:22
 */
@RestController
@RequestMapping("/bigclass")
@Api(tags = "软件分类--大类")
public class BsBigClassController {

    @Autowired
    private BsBigClassService bsBigClassService;


    @PostMapping("/before/getList")
    @ApiOperation(value = "获取软件分类大类列表")
    public R<List<BsBigClass>> getList(){
        List<BsBigClass> list = bsBigClassService.list();
        return R.ok(list);
    }

}
